package vn.orderonline.core.dao.entity;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "MENU_DRINK_DRINK")
public class MenuDrinkDrink implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private MenuDrinkDrinkId id;

	public MenuDrinkDrink() {
		
	}
	
	public MenuDrinkDrink(MenuDrinkDrinkId id) {
		this.id = id;
	}

	@EmbeddedId
	@AttributeOverrides({
		@AttributeOverride(name = "menuDrinkId", column = @Column(name = "MENU_DRINK_ID")),
		@AttributeOverride(name = "drinkId", column = @Column(name = "DRINK_ID"))})
	public MenuDrinkDrinkId getId() {
		return id;
	}

	public void setId(MenuDrinkDrinkId id) {
		this.id = id;
	}
	
}
